﻿namespace A3;

public class Square : IShape
{
    public double Side { get; init; }

    public Square(double side)
    {
        Side = side;
    }

    public double CalculateArea()
    {
        return Side * Side;
    }

    public bool IsValid()
    {
        return Side > 0;
    }
}